﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using LOGICSMS.Models;
namespace LOGICSMS.Controllers
{
    public class StoreController : ApiController
    {
        stationerystoreEntities se=new stationerystoreEntities();
        //------Method to get Dep List---///
        [Route("Presentation/Store/dep/getdeplist")]
        [HttpGet]
        public List<department> getall()
        {
            List<department> deplist = new List<department>();
            var q = from d in se.departments
                    select d;
            deplist = q.ToList();
            return deplist;


        }
    }
}
